﻿using System;
using System.Collections.Generic;
using System.Text;

namespace class3Homework
{
   abstract class geometry
    {
            private string name;//表示图形名字的字段
            public string Name//图形名字属性
            {
                get
                {
                    return name;
                }
                set
                {
                    name = value;
                }
            }
            public abstract double Area//图形面积，抽象属性
            {
                get;
             }
            public geometry(string name)
            {
                this.name = name;
            }
             public abstract bool selfCheck();
    }
 }

